package com.gjw.springbucks.repository;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.repository.NoRepositoryBean;

import java.util.List;

/**
 * @author Administrator
 * @since 2019/7/8.
 */
@NoRepositoryBean
public interface BaseRepository<T, Long> extends JpaRepository<T, Long> {
    List<T> findTop3ByOrderByUpdateTimeDescIdAsc();
}
